import { createRouter, createWebHistory } from 'vue-router'

const router = createRouter({
  history: createWebHistory(import.meta.env.BASE_URL),
  routes: [
    // {
    //   path: '/resetpwd', // 重置密码
    //   component: () => import('../views/resetpwd.vue'),
    // },
    {
      path: '/a', // 登录页
      name: 'logins',
      component: () => import('../views/first-logins.vue'),
    },
    {
      path: '/tabbar',
      name: 'tabbar',
      component: () => import('../views/tabbar.vue')
    },
    {
      path: '/acceptorder',
      name: 'acceptorder',
      component: () => import('../views/acceptorder.vue')
    },
    {
      path: '/escort_certification',
      name: 'escort_certification',
      component: () => import('../views/escort_certification.vue')
    },
    {
      path: '/mypage',
      name: 'mypage',
      component: () => import('../views/mypage.vue')
    },
    {
      path: '/homepage',
      name: 'homepage',
      component: () => import('../views/Homepage.vue'),
    },
    {
      path: '/changeimg',
      name: 'changeimg',
      component: () => import('../views/changeimg.vue')
    },
    {
      path: '/changepwd',
      name: 'changepwd',
      component: () => import('../views/changepwd.vue')
    },
    {
      path: '/statistics',
      name: 'statistics',
      component: () => import('../views/Statistics.vue')
    },
  ],
})

export default router
